﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Transport.Core.Models.Parcels;

namespace Transport.Areas.Administrator.Models
{
    public class ParcelDeliveryGroupModel
    {
        public int ParcelDeliveryGroupId { get; set; }
        public int DeliveryUserId { get; set; }
        public string DeliveryUser { get; set; }
        public string CreateUser { get; set; }
        public int CreateUserId { get; set; }
        public int MyOfficeId { get; set; }
        public DateTime CreateDate { get; set; }
    }

    public class ParcelDeliveryModel
    {
        public int ParcelDeliveryId { get; set; }
        public int DeliveryUserId { get; set; }
        public int ParcelDeliveryGroupId { get; set; }
        public int ParcelId { get; set; }
        public string TrackingNumbers { get; set; }
        public string DeliverFrom { get; set; }
        public string DeliverTo { get; set; }
        public int TotalWeight { get; set; }
        public decimal TotalCost { get; set; }
        public DateTime CreateDate { get; set; }
        public string ToAddress { get; set; }
        public int Status { get; set; }
        public string Receiver { get; set; }
        public DateTime? ReceivedDate { get; set; }
        public string StatusName
        {
            get
            {
                return TrackingStatus.GetStatus(Status);
            }
        }
    }
}